package org.jeecg.modules.xl.aftersale.service;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.xl.aftersale.dto.AftersaleAuditDto;
import   org.jeecg.modules.xl.aftersale.entity.XlCustomerAftersaleDetail;
import   org.jeecg.modules.xl.aftersale.entity.XlCustomerAftersale;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 售后单
 * @Author: jeecg-boot
 * @Date:   2024-11-03
 * @Version: V1.0
 */
public interface IXlCustomerAftersaleService extends IService<XlCustomerAftersale> {

	/**
	 * 添加一对多
	 *
	 * @param xlCustomerAftersale
	 * @param xlCustomerAftersaleDetailList
	 */
	public Result<String> saveMain(XlCustomerAftersale xlCustomerAftersale,List<XlCustomerAftersaleDetail> xlCustomerAftersaleDetailList) ;
	
	/**
	 * 修改一对多
	 *
   * @param xlCustomerAftersale
   * @param xlCustomerAftersaleDetailList
	 */
	public void updateMain(XlCustomerAftersale xlCustomerAftersale,List<XlCustomerAftersaleDetail> xlCustomerAftersaleDetailList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	/**
	 * 售后单:审核
	 * @param dto
	 */
	Result<String> audit(AftersaleAuditDto dto);
}
